﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DcsGauges.Gui.Gauges.Panels;
using Microsoft.Xna.Framework.Graphics;
using DcsGauges.Input.Events;
using Microsoft.Xna.Framework;

namespace DcsGauges.Gui.Views.Concrete
{
    class TestingView : View
    {
        public TestingPanel            panel               = null;

        public TestingView(GraphicsDevice device)
        {
            this.panel              = new TestingPanel(this, device);
        }

        public override void Render(SpriteBatch spriteBatch, GraphicsDevice device, Rectangle parentRect, float globalZIndex)
        {
            this.panel.Render(spriteBatch, device, parentRect, globalZIndex);
        }

        public override void InjectMouseEvent(MouseEvent evt, GameTime gt)
        {
            this.panel.InjectMouseEvent(evt, gt);
        }
    }
}
